package com.googlecode.marrowboy.it;

import java.io.File;

import org.apache.maven.it.VerificationException;
import org.apache.maven.it.Verifier;
import org.apache.maven.it.util.ResourceExtractor;
import org.junit.Ignore;
import org.junit.Test;

@Ignore /* because it's not really implemented yet */
public class JUnit4RunListenerIT extends AbstractITClass {

    @Test
    public void junit4RunListenerIt() throws Exception {

        File testDir = ResourceExtractor.simpleExtractResources(getClass(), "/junit4-run-listener");

        Verifier verifier = new Verifier(testDir.getAbsolutePath());
        
        try{
            this.executeGoal(verifier, "test");
            
        } catch (VerificationException e){
            // expected.  there are failing tests
            
        }

        verifier.resetStreams();

        // File reportFile = new File(testDir,
        // "target/marrowboy/marrowboy-runlistener-report.txt");
        // assertThat(reportFile.exists(), is(true));

    }

}
